<template>
  <div id="app">
    <nav>
      <!-- 选中的router-link会自带一个router-link-exact-active类名 -->
      <!-- 使用tag属性，可以改变标签的类型，默认是a标签 -->
      <router-link to="/hot">热映</router-link> |
      <router-link to="/cinema">影院</router-link> |
      <router-link to="/wait">待映</router-link> |
      <router-link to="/detail/25222">详情</router-link>
    </nav>
    <router-view />
    <router-view name="a" />
    <router-view name="b" />
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
